import { ElMessage } from "element-plus";
import { DURETION } from "@/utils/mockConfiguration/mockConfig";

/**
 * 消息提示
 * @param {String} type 提示类型
 * @param {String} message 提示内容
 */
export const tipsMessage = ({ type, message }) =>
  ElMessage({
    showClose: true,
    duration: DURETION,
    type,
    dangerouslyUseHTMLString: true,
    message,
  });
